import React, { useEffect } from 'react'
import axios from 'axios';

export default function App() {

  //刚加载就发送请求
  useEffect(() => {
    axios.get("/api1/user")
  }, [])
  return (
    <div>App</div>
  )
}
